<%@ page import="psychoproject.Assignment" %>



<div class="fieldcontain ${hasErrors(bean: assignmentInstance, field: 'question', 'error')} required">
	<label for="question">
		<g:message code="assignment.question.label" default="Question" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="question" name="question.id" from="${psychoproject.Question.list()}" optionKey="id" required="" value="${assignmentInstance?.question?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: assignmentInstance, field: 'test', 'error')} required">
	<label for="test">
		<g:message code="assignment.test.label" default="Test" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="test" name="test.id" from="${psychoproject.Test.list()}" optionKey="id" required="" value="${assignmentInstance?.test?.id}" class="many-to-one"/>
</div>

